import Main from '@/components/main';
// 工单服务
export const workOrder = [
  {
    path: '/work-order',
    name: 'WorkOrder',
    component: Main,
    meta: {
      title: '工单服务',
      icon: 'icon iconfont iconxitongshezhi'
    },

    children: [
      {
        path: '/work-order/work-order-list',
        name: 'WorkOrderList',
        meta: {
          title: '工单列表',
          privilege: [
            {
              title: '查询',
              name: 'syswork-order-list-search'
            },
            {
              title: '添加',
              name: 'syswork-order-list-add'
            },
            {
              title: '编辑',
              name: 'syswork-order-list-update'
            },
            {
              title: '删除',
              name: 'syswork-order-list-delete'
            },
            {
              title: '管理员-处理工单',
              name: 'syswork-order-list-manager-action'
            },
            {
              title: '详情',
              name: 'orders-list-view'
            },
          ]
        },
        component: () =>
          import('@/views/weapp/work-order/orders-list.vue')
      },
      {
        path: '/order/order-detail/:id',
        name: 'WorkOrderDetail',
        meta: {
          title: '工单详情',
          hideInMenu: true,
          privilege: [
            {
              title: '查询',
              name: 'order-detail-search'
            },
            {
              title: '添加评论',
              name: 'order-detail-commint'
            }
          ]
        },
        component: () => import('@/views/weapp/work-order/order-detail.vue')
      },
      {
        path: '/work-order/work-order-type',
        name: 'WorkOrderType',
        meta: {
          title: '工单类型',
          privilege: [
            {
              title: '查询',
              name: 'work-order-type-list-query'
            },
            {
              title: '添加',
              name: 'work-order-type-list-add'
            },
            {
              title: '编辑',
              name: 'work-order-type-list-update'
            },
            {
              title:'批量删除',
              name: 'work-order-type-list-batch-delete'
            },
            {
              title: '删除',
              name: 'syswork-order-type-delete'
            }
          ]
        },
        component: () =>
          import('@/views/weapp/work-order-type/work-order-type-list.vue')
      }
    ]
  }
];
